# Maintainer: Zachary L. Andrews <zcrayfish@gmail.com>
pkgname=libdbusmenu-lxqt
pkgver=0.1.0
pkgrel=0
pkgdesc="library to export QMenu over DBusMenu protocol"
url="https://github.com/lxqt/libdbusmenu-lxqt"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="qt6-qtbase-dev"
makedepends="$depends_dev cmake doxygen samurai"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/lxqt/libdbusmenu-lxqt/releases/download/$pkgver/libdbusmenu-lxqt-$pkgver.tar.xz"
options="!check"  # requires as-of-yet unpkg'd qjson, may require dbus?

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None \
		-DWITH_DOC=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8c09f9bd4b3c60db1666f5a53ea84c67d2d120b215eca6563c32385387e100fe591cb8653a283750444356c61306cf385507edb6a507b22427eb6f18aa972fb5  libdbusmenu-lxqt-0.1.0.tar.xz
"
